﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ymatou.ServiceCenter.Common
{
    public interface IConfigSettings
    {
        bool Exists(string key);

        string GetString(string key);

        IList<TKey> GetList<TKey>(string key) where TKey : IConvertible;

        IDictionary<TKey, TValue> GetDictionary<TKey, TValue>(string key)
            where TKey : IConvertible
            where TValue : IConvertible;

        T Get<T>(string key, T defaultValue = default(T));
    }
}
